﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Masters/LoginMaster.Master" AutoEventWireup="true" CodeBehind="WebFormLogin.aspx.cs" Inherits="CustomersSuppliersWebApplication.WebFormLogin" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContentPlaceHolder" runat="server">
    <asp:Login ID="LoginDefault" runat="server" DestinationPageUrl="~/WebFormHome.aspx" RememberMeSet="true" OnLoggingIn="LoginDefault_LoggingIn" OnLoginError="LoginDefault_LoginError" OnLoggedIn="LoginDefault_LoggedIn">
        <LayoutTemplate>
            <table style="border-collapse:separate;border-spacing:3px;">
                <tr>
                    <td style="color: #f00">
                        <asp:Literal ID="FailureText" runat="server" /></td>
                </tr>
                <tr>
                    <td colspan="4" align="center">
                        <h4>الدخول للنظام</h4>
                    </td>
                </tr>
                <tr>
                    <td align="right">المستخدم</td>
                    <td colspan="3" align="right">
                        <asp:TextBox ID="UserName" runat="server" />
                        <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" ControlToValidate="UserName" ErrorMessage="*" ForeColor="Red" ToolTip="من فضلك ادخل اسم المستخدم" />
                    </td>
                </tr>
                <tr>
                    <td align="right">كلمة السر</td>
                    <td colspan="3" align="right">
                        <asp:TextBox ID="Password" runat="server" TextMode="Password" />
                        <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" ControlToValidate="Password" ErrorMessage="*" ForeColor="Red" ToolTip="من فضلك ادخل  كلمة السر" />
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:CheckBox ID="RememberMe" runat="server" Text="تذكرنى" />
                    </td>
                    <td>
                        <asp:ImageButton ID="Login" CommandName="Login" runat="server" Text="دخول" ImageUrl="ImageEditting.axd?W=30&amp;H=30&amp;U=~/Images/Login/login.png" />
                    </td>
                    <td></td>
                    <td></td>
                </tr>
                <tr>
                    <td>
                        <a href="WebFormRecoverPassword.aspx">استعادة كلمةالسر</a>
                    </td>
                    <td>
                        <a href="WebFormRecoverPassword.aspx">
                            <asp:Image ID="ImageButtonRecoverPassword" runat="server" ImageUrl="ImageEditting.axd?W=20&amp;H=20&amp;U=~/Images/Login/PasswordRecovery.png" CausesValidation="false" />
                        </a>
                    </td>
                    <td align="left">
                        <a href="WebFormLogin.aspx?Reg=1">تسجيل</a>
                    </td>
                    <td align="right">
                        <a href="WebFormLogin.aspx?Reg=1">
                            <asp:Image ID="ImageButtonRegistrations" runat="server" ImageUrl="ImageEditting.axd?W=30&amp;H=20&amp;U=~/Images/Login/Register.png" CausesValidation="false" />
                        </a>
                    </td>
                </tr>
            </table>
        </LayoutTemplate>
    </asp:Login>

    <asp:CreateUserWizard ID="CreateUserWizardDefault" runat="server" Visible="false" DisableCreatedUser="false" DisplayCancelButton="true" RequireEmail="true"
        CancelDestinationPageUrl="~/WebForms/Login/WebFormLogin.aspx" ContinueDestinationPageUrl="~/WebForms/Login/WebFormLogin.aspx" OnSendingMail="CreateUserWizardDefault_SendingMail" OnSendMailError="CreateUserWizardDefault_SendMailError" OnCreatedUser="CreateUserWizardDefault_CreatedUser">
        <WizardSteps>
<%--            <asp:WizardStep ID="NameStep" AllowReturn="true"> 
                <asp:Label ID="LabelName" runat="server" Text="الاسم : "></asp:Label>            
                <asp:TextBox ID="TextBoxName" runat="server" />
            </asp:WizardStep> --%>
            <asp:CreateUserWizardStep ID="CreateUserWizardStep" runat="server" Title="">
            </asp:CreateUserWizardStep>
            <asp:CompleteWizardStep ID="CompleteWizardStep" runat="server" Title="">
            </asp:CompleteWizardStep>
        </WizardSteps>
        <HeaderTemplate><h4 style="text-align:center">اضافة مستخدم</h4></HeaderTemplate>
        <MailDefinition></MailDefinition>
    </asp:CreateUserWizard>
</asp:Content>
